﻿using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Netium.Compiler
{
    public class Symbol : Netium.Compiler.ISymbol
    {
        private readonly string _name;
        private dynamic _attributes = new ExpandoObject();

        public Symbol(string symbolName)
        {
            if (string.IsNullOrEmpty(symbolName))
                throw new ArgumentException("Symbol name is empty or null", "symbolName");

            this._name = symbolName;
        }

        public string Name
        {
            get { return _name; }
        }

        public dynamic Attributes
        {
            get { return _attributes; }
        }
    }
}
